package de.hach.manno.webservice;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;

/**
 * <match id='1' homeClubID='1' awayClubID='2' date='2012-06-10 15:00:00'
 * timestamp='2012-06-14 19:43:00'/>
 * 
 * 
 * @author hanspeter
 * 
 */
@Root
public class Match {

	@Attribute
	private int id;

	@Attribute
	private int homeClubId;

	@Attribute
	private int awayClubId;

	@Attribute
	private String date;

	@Attribute
	private String timestamp;

	public int getId() {
		return id;
	}

	public int getHomeClubId() {
		return homeClubId;
	}

	public int getAwayClubId() {
		return awayClubId;
	}

	public String getDate() {
		return date;
	}

	public String getTimestamp() {
		return timestamp;
	}

	@Override
	public String toString() {
		return "Match [" + this.id + " (" + this.timestamp + ")] "
				+ this.homeClubId + " - " + this.awayClubId;
	}
}
